package com.ioc.xmlFactoryBean;

import lombok.Data;

@Data
public class factoryBean {

    private String name = "init";
    private String initString;

    public factoryBean createBean(){
        factoryBean factoryBean = new factoryBean();
        factoryBean.setName("factory bean");
        factoryBean.setInitString("initString");
        return factoryBean;
    }

    public void init(){
        this.name = "init bean....";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInitString() {
        return initString;
    }

    public void setInitString(String initString) {
        this.initString = initString;
    }
}



